<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * pelamarketrampilan.php
 * @author ranuandra
 *
 * 7 Jun 2012 14:11:34
 *
 * 
 */

class Model_Pelamarketrampilan extends ORM
{
	protected $_belons_to = array(
	        'mstpelamar' 		=> array('model'	 => 'mstpelamar'),
	);
	
	private $_field = array('ketrampilan', 'lama_pengalaman', 'level');
	private $_form = array('ketrampilan' 			=> '', 
							'lama_pengalaman'		=> '',
							'level'		=> '',
	                      );
	
	public $rules = array(
					'ketrampilan' 	 => array(
									array('min_length', array(':value', 0)),
								),
					'lama_pengalaman' => array(
									array('min_length', array(':value', 0)),
								),
					'level' => array(
									array('min_length', array(':value', 0)),
								),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}
}